<?php
  $username = $_POST['username'];
  $password = $_POST['password'];
  if (!empty($username) && $password == '123456') {
    $arr = array ('code'=>200);
  } else if (!empty($username)) {
  	$arr = array ('code'=>404,'passwordError'=>'password is error!');
  } else {
    $arr = array ('code'=>404,'usernameError'=>'username is error!','passwordError'=>'password is error!');
  }
  echo json_encode($arr);
  exit();
?>
